package twentytwo.command.homework;

public class Main {
    public static void main(String[] args) {
        Document document = new Document();
        Graphics graphics = new Graphics();

        Command command = new DocumentCommand(document);
        Command command1 = new GraphicsCommand(graphics);

        ICommand iCommand = new ICommand();
        iCommand.append(command);
        iCommand.append(command1);
        iCommand.execute();

    }
}
